import config from "@/config";
import { common } from "@/config/system";

/* 删除权限 */
export function deletePermission() {
  return common;
}

/* 创建权限 */
export function addSystemPermission() {
  return common;
}

export function getPermissionTree() {
  return Promise.resolve({
    code: 200,
    msg: "OK",
    data: config.mockPermission,
  });
}

/* 修改权限 */
export function updateSystemPermission() {
  return common;
}

export function getRolePermissionList() {
  return Promise.resolve({
    code: 200,
    msg: "OK",
    data: config.mockPermission,
  });
}

/* 配置角色权限 */
export function configRolePermission() {
  return common;
}
